package com.tjsinfo.tjsoa.mail.vo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * Tjsmail entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Tjsmail implements java.io.Serializable {

	// Fields

	private String tjsmailId;
	private Integer tjsmailUserid;
	private String tjsmailTitle;
	private String tjsmailValue;
	private Date tjsmailDatatime;
	private Integer tjsmailType;
	private Integer tjsmailStart;
	private Integer tismailread;
	private Integer tismailtag;
	private Integer sortid;
	private String tjsmailUsername;
	private String sendSql;
	private Set tjsAnnexes = new HashSet(0);
	private Set tjsspams = new HashSet(0);
	private Set tjsemailReceiveds = new HashSet(0);

	// Constructors

	/** default constructor */
	public Tjsmail() {
		
	}

	/** minimal constructor */
	public Tjsmail(Integer tjsmailUserid, String tjsmailTitle, Date tjsmailDatatime,
			Integer tjsmailType) {
		this.tjsmailUserid = tjsmailUserid;
		this.tjsmailTitle = tjsmailTitle;
		this.tjsmailDatatime = tjsmailDatatime;
		this.tjsmailType = tjsmailType;
	}

	/** full constructor */
	public Tjsmail(Integer tjsUser, String tjsmailTitle, String tjsmailValue,
			Date tjsmailDatatime, Integer tjsmailType, String tjsmailUsername, String sendSql,Set tjsAnnexes,
			Set tjsspams, Set tjsemailReceiveds) {
		this.tjsmailUserid = tjsmailUserid;
		this.tjsmailTitle = tjsmailTitle;
		this.tjsmailValue = tjsmailValue;
		this.tjsmailDatatime = tjsmailDatatime;
		this.tjsmailType = tjsmailType;
		this.tjsAnnexes = tjsAnnexes;
		this.tjsspams = tjsspams;
		this.tjsemailReceiveds = tjsemailReceiveds;
		this.tjsmailUsername = tjsmailUsername;
		this.sendSql = sendSql;
	}

	// Property accessors

	public String getTjsmailId() {
		return this.tjsmailId;
	}

	public void setTjsmailId(String tjsmailId) {
		this.tjsmailId = tjsmailId;
	}

	public Integer getTjsmailUserid() {
		return tjsmailUserid;
	}

	public void setTjsmailUserid(Integer tjsmailUserid) {
		this.tjsmailUserid = tjsmailUserid;
	}

	public String getTjsmailTitle() {
		return this.tjsmailTitle;
	}

	public void setTjsmailTitle(String tjsmailTitle) {
		this.tjsmailTitle = tjsmailTitle;
	}

	public String getTjsmailValue() {
		return this.tjsmailValue;
	}

	public void setTjsmailValue(String tjsmailValue) {
		this.tjsmailValue = tjsmailValue;
	}

	public Date getTjsmailDatatime() {
		return this.tjsmailDatatime;
	}

	public void setTjsmailDatatime(Date tjsmailDatatime) {
		this.tjsmailDatatime = tjsmailDatatime;
	}

	public Integer getTjsmailType() {
		return this.tjsmailType;
	}

	public void setTjsmailType(Integer tjsmailType) {
		this.tjsmailType = tjsmailType;
	}

	public Set getTjsAnnexes() {
		return this.tjsAnnexes;
	}

	public void setTjsAnnexes(Set tjsAnnexes) {
		this.tjsAnnexes = tjsAnnexes;
	}

	public Set getTjsspams() {
		return this.tjsspams;
	}

	public void setTjsspams(Set tjsspams) {
		this.tjsspams = tjsspams;
	}

	public Set getTjsemailReceiveds() {
		return this.tjsemailReceiveds;
	}

	public void setTjsemailReceiveds(Set tjsemailReceiveds) {
		this.tjsemailReceiveds = tjsemailReceiveds;
	}

	/**
	 * @return the tjsmailStart
	 */
	public Integer getTjsmailStart() {
		return tjsmailStart;
	}

	/**
	 * @param tjsmailStart the tjsmailStart to set
	 */
	public void setTjsmailStart(Integer tjsmailStart) {
		this.tjsmailStart = tjsmailStart;
	}

	public Integer getTismailread() {
		return tismailread;
	}

	public void setTismailread(Integer tismailread) {
		this.tismailread = tismailread;
	}

	public Integer getTismailtag() {
		return tismailtag;
	}

	public void setTismailtag(Integer tismailtag) {
		this.tismailtag = tismailtag;
	}
	
	public void addAnnexes(TjsAnnex tjsAnnex)
	{
		tjsAnnexes.add(tjsAnnex);
		tjsAnnex.setTjsmail(this);
	}

	public Integer getSortid() {
		return sortid;
	}

	public void setSortid(Integer sortid) {
		this.sortid = sortid;
	}

	public String getTjsmailUsername() {
		return tjsmailUsername;
	}

	public void setTjsmailUsername(String tjsmailUsername) {
		this.tjsmailUsername = tjsmailUsername;
	}

	public String getSendSql() {
		return sendSql;
	}

	public void setSendSql(String sendSql) {
		this.sendSql = sendSql;
	}
}